package com.xiyou.luckdraw.api.converter;

import com.xiyou.luckdraw.api.dal.entitys.UserExchange;
import com.xiyou.luckdraw.api.dto.user.UserExchangeDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @ClassName: UserExchangeConverter
 * @Description: 用户兑换记录转换DTO
 * @author: limingxing
 * @Date: 2019-10-08 13:05
 */
@Mapper(componentModel = "spring")
public interface UserExchangeConverter {

    @Mappings({})
    UserExchangeDto userExchange2List(UserExchange userExchange);

    List<UserExchangeDto> userExchange2List(List<UserExchange> userExchanges);
}
